package la.iok.hzsvn.lewin.movie.shopmovie.entity;

import la.iok.hzsvn.lewin.movie.shopmovie.model.JoinPlayerParam;

import java.util.Date;

/**
 * 玩家,加入车次的会员用户
 */
public class Player {
    private Long id;
    /**
     * 加入的拼车id.
     */
    private Long carpoolId;
    /**
     * 玩家的id
     */
    private Long userId;
    /**
     * 引导者id，一般是客服引导玩家拼车
     */
    private Long guideId;
    /**
     * 玩家归属的用户id。可能的归属用户：客服、DM、店长。默认为引导玩家加入拼车的人，一般是客服
     */
    private Long belongId;
    /**
     * 玩家加入拼车的时间
     */
    private Date joinTime;
    /**
     * 玩家类型。0：正常，1：线下玩家。默认为0
     */
    private Integer type;
    /**
     * 玩家备注信息
     */
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCarpoolId() {
        return carpoolId;
    }

    public void setCarpoolId(Long carpoolId) {
        this.carpoolId = carpoolId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGuideId() {
        return guideId;
    }

    public void setGuideId(Long guideId) {
        this.guideId = guideId;
    }

    public Long getBelongId() {
        return belongId;
    }

    public void setBelongId(Long belongId) {
        this.belongId = belongId;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean virtualType(){
        return JoinPlayerParam.TYPE_VIRTUAL.equals(type);
    }
}
